package hu.debrecen.adastra.card.util;

import java.util.Date;

public class TimeUtil {

	public static String format(long elapsedTime) {
		String format = String.format("%%0%dd", 2);
		elapsedTime = elapsedTime / 1000;
		String seconds = String.format(format, elapsedTime % 60);
		String minutes = String.format(format, (elapsedTime % 3600) / 60);
		return minutes + ":" + seconds;
	}

	public static long getCurrentTime() {
		return new Date().getTime();
	}

}
